package org.knife.autoconfigure.springbootlearn;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;

/**
 * Created with IntelliJ IDEA.
 *
 * @author 76875
 * @date 2021/11/19 星期五 17:00
 * @description 自动装配
 * @version 1.0
 */
@ComponentScan(value = {
        "org.knife.springbootlearn.*"
})
@MapperScan(value = {
        //配置到指定文件夹目录，不支持模糊匹配
        "org.knife.springbootlearn.cache.infra.mapper",
        "org.knife.springbootlearn.security.infra.mapper",
})
//@EnableAutoConfiguration // 启动Spring boot自动装配
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
@EnableAsync
@EnableWebSecurity
@Configuration
public class SpringbootLearnAutoConfiguration {
}
